package com.openingedu.mba.persist;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "oc_question_seckill")
public class DbQuestionSeckill {
	
	@DatabaseField(generatedId = true)
	private Integer id;
	
	@DatabaseField(foreign = true, foreignAutoRefresh = true,columnName="questionID") 
	private DbQuestion question;
	
	@DatabaseField
	private String seckillContent;

	public DbQuestionSeckill() {
	}

	public DbQuestion getQuestion() {
		return question;
	}

	public void setQuestion(DbQuestion question) {
		this.question = question;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSeckillContent() {
		return seckillContent;
	}

	public void setSeckillContent(String seckillContent) {
		this.seckillContent = seckillContent;
	}

	@Override
	public String toString() {
		return "DbQuestionSeckill [id=" + id + ", question=" + question
				+ ", seckillContent=" + seckillContent + "]";
	}
}
